import request from '@/api/request'

// 获取电影列表
export function getMovieList(params) {
    return request({
        url: '/movies/',
        method: 'get',
        params: {
            page: params.page,
            page_size: params.page_size,
            movie_name: params.movie_name,
            region: params.region,
            category: params.category
        }
    })
}

// 获取电影详情
export const getMovieDetail = (movieId) => {
    return request({
        url: `/movies/${movieId}/`,
        method: 'get'
    })
}


